#!/bin/bash
# step 1, install aspnetcore runtime v6
rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
yum -y install aspnetcore-runtime-6.0
# step 2, create a protected process for samples-esports then reload
cp -rf /var/samples-esports/inits/samples-esports.service /etc/systemd/system
systemctl enable samples-esports.service
systemctl start samples-esports.service
systemctl daemon-reload